#include <stdio.h>
#include "forback.h"

int main(void) {
    char *argv[3];
    int i;
	
    // Test of foreground
    printf("Beginning test of foreground\n");
    argv[0] = "echo";
    argv[1] = "myCommand";
    argv[2] = '\0';
	
    for (i=0; i < 2; i++) {
		printf("Execute round %d (foreground)\n", i);
        foregroundcmd(argv[0], argv);
    }

	printf("\nBeginning test of background\n");

	    for (i=0; i < 2; i++){
		    printf("Execute round %d (background)\n",i);
	        backgroundcmd(argv[0], argv);
	    }
}